package com.ym.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ym.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Accessors(chain = true)
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
@Schema(description = "SysUser实体类")
public class SysUser extends BaseEntity {

    /**
     * 
     */
    @TableId(value = "id", type = IdType. AUTO)
    private Integer id;
    /**
     * 用户名
     */
    @TableField("user_name")
    @Schema(description = "用户名")
    private String userName;
    /**
     * 密码
     */
    @TableField("password")
    @Schema(description = "密码")
    private String password;
    /**
     * 昵称
     */
    @TableField("nick_name")
    @Schema(description = "昵称")
    private String nickName;
    /**
     * 手机
     */
    @TableField("phone_number")
    @Schema(description = "手机")
    private Integer phoneNumber;
    /**
     * 邮箱
     */
    @TableField("email")
    @Schema(description = "邮箱")
    private String email;
    /**
     * 删除标记
     */
    @TableField("del_flag")
    @Schema(description = "删除标记")
    private Boolean delFlag;
}